import pandas as pd
import csv
import numpy as np


mark_list=[1.0,2.0,3.0,4.0,5.0]

cols_list=['class_id','class_name','product_id','title','price','buy_number','address','shop_name','image_url','info_url']
data=pd.read_csv('source.csv',names=cols_list)

data['rating']=np.random.choice(mark_list,size=len(data))

data.to_csv('shop_info.csv',index=False)